﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="GoodList.ascx.cs" Inherits="UserControls_GoodList" %>
<%@ Register Src="Page.ascx" TagName="Page" TagPrefix="uc1" %>
<%@ Register Assembly="Shove.Web.UI.4 For.NET 2.0" Namespace="Shove.Web.UI" TagPrefix="ShoveWebUI" %>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="text/javascript" src="js/Shop.js"></script>

<script language="javascript" type="text/javascript">
    function addGood(proid,pronorm,color)
    {
        var quantity = 1;
         
        Common.intoCar(proid,quantity,pronorm,color,"carList");
        window.location="Default.aspx?PN=cart";
    }

</script>

<table border="0" align="center" cellpadding="0" cellspacing="0" style="width: 750px">
    <tr>
        <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="C5E4FF" style="text-align: left;">
                <tr>
                    <td height="540" valign="top" bgcolor="#FFFFFF">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td width="3%" height="35" background="images/UserControls/bgbg.jpg">
                                    <div align="center">
                                        <img src="images/UserControls/dddd.jpg" width="9" height="27" /></div>
                                </td>
                                <td width="97%" background="images/UserControls/bgbg.jpg" class="STYLE3">
                                    <asp:Label ID="lbTitle" runat="server" Text="商品列表"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td height="1" bgcolor="C5E4FF">
                                </td>
                                <td bgcolor="C5E4FF">
                                </td>
                            </tr>
                        </table>
                        <table width="98%" border="0" align="center" cellpadding="1" cellspacing="0" class="txt180">
                            <tr>
                                <td height="375" valign="top">
                                    <asp:DataList ID="dlGoods" runat="server" OnItemDataBound="dlGoods_ItemDataBound"
                                        OnItemCommand="dlGoods_ItemCommand">
                                        <ItemTemplate>
                                            <table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td width="23%" rowspan="6" valign="top">
                                                        <a href="Default.aspx?PN=goods_details&ID=<%# Eval("ID") %>">
                                                            <asp:Image ID="imgGoodPic" runat="server" onerror="this.src='UpFile/Goods/NoPicture.jpg'"
                                                                ImageUrl='<%# Eval("GoodPic_Small") %>' CssClass="photo" /></a>
                                                    </td>
                                                    <td colspan="4" id="tdname" runat="server" align="left">
                                                        <a href="Default.aspx?PN=goods_details&ID=<%# Eval("ID") %>">
                                                            <asp:Label ID="lbGoodName" runat="server" Text='<%# Eval("GoodName_CN") %>'></asp:Label></a>
                                                        <asp:HiddenField ID="hID" runat="server" Value='<%# Eval("ID") %>' />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" height="50" colspan="4" valign="top" style="padding-left: 10px;">
                                                        <span id="spanmark" runat="server">市场价：￥<asp:Label ID="lbPrice_Orig" runat="server"
                                                            Text='<%# Eval("Price_Orig") %>'></asp:Label><br />
                                                        </span><span id="spanvip" runat="server">会员价：</span><span><font color="red">￥
                                                            <asp:Label ID="lbPrice_Vip" runat="server" Text='<%# Eval("Price_Vip") %>' ForeColor="#FF6600"
                                                                Style="font-weight: bold"></asp:Label></font></span><br />
                                                        <span id="spanCost" runat="server">立即节省：￥<asp:Label ID="lbCost" runat="server" Text='<%# Eval("Cost") %>'></asp:Label></span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="4" id="tdcontent" runat="server" align="left">
                                                        <asp:Label ID="lbGoodIntroduce" runat="server" Text='<%# Eval("GoodIntroduce") %>'
                                                            Style="color: #336699"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td height="5" colspan="4">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="38%">
                                                        &nbsp;
                                                    </td>
                                                    <td width="13%">
                                                        <asp:ImageButton ID="ibBuy" runat="server" CausesValidation="False" PostBackUrl="~/Default.aspx?PN=cart" />
                                                    </td>
                                                    <td width="13%">
                                                        <a href="Default.aspx?PN=goods_details&ID=<%# Eval("ID") %>">
                                                            <img src="http://about" runat="server" id="imglook" runat="server" /></a>
                                                    </td>
                                                    <td style="width: 13%">
                                                        <asp:ImageButton ID="ibFav" runat="server" CommandName="Update" /><a href="#"></a>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td height="5" colspan="4">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="5" valign="top" id="tdline" runat="server" style="height: 10px">
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                    </asp:DataList>
                                </td>
                            </tr>
                            <tr>
                                <td bgcolor="#FFFFFF">
                                    <uc1:Page ID="Page1" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<asp:HiddenField ID="hGoodType" runat="server" />
<asp:HiddenField ID="hGoodID" runat="server" />
